import Cookies from 'js-cookie'

// const TokenKey =
//   'Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJiY2I3ZDI0NTEzNDk0NGQ2YWUzMjI2M2U0NjZiM2FlZiIsInVzZXIiOiIwMTAyNCIsInN1YiI6IjAxMDI0In0.FWN7R6W8VUA5FCzJBHJGGlULo5khiequjJbQqT2-FJBk6gpTCBUQnDmiWjkp5ErcY2tNLNtVVpvTJOF96SSs9g'
const TokenKey = 'accessToken'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
